﻿@model IEnumerable<EfSample.Model.Hero>

@{
    ViewBag.Title = "Index";
}

<h2>Index</h2>

<div>
    <table>
        <tr>
            <th>Id</th>
            <th>Name</th>
            <th>IsSuperHero</th>
            <th>Race</th>
        </tr>
        @foreach (var item in Model) { 
            <tr>
                <td>@item.Id</td>
                <td>@item.Name</td>
                <td>@(@item is EfSample.Model.SuperHero)</td>
                <td>@item.Race.Name</td>
            </tr>
        }
    </table>
</div>

